#include "../Advisor.h"
#include "../Player.h"
#include "../Table.h"
#define VERBOSE 1
using namespace std;


//Creation Test
cout<<"Creating the table"<<endl
Card _ace(clubs, ace,3);
Card _joker(hearts, joker,3);
Card _king(hearts, king, 3);

//tablecheck
Table t2=Table(4); //the table is called t2
assert(t2.players.size()==4);

cout<<"assigning an advisor to player 1"<<endl;

Advisor _advisor= Advisor(t2*, t2.players[0]*)
t2.players[0].setAdvisor()


cout<<"which Card Test begins"<<endl;

*Card tempCard=_advisor.whichCard();
cout<<"what card came out?"<<endl;
cout<<tempCard->getSuit()<<endl;
cout<<tempCard->getRank()<<endl;
cout<<tempCard->getID()<<endl;

cout<<"feed how much test?  4 cases"<<endl;

cout<<"set owners and vassals"<<endl;
t2.players[1].setOwner(t2.players[0]);
t2.players[0].addVassal(t2.players[1]);

cout<<"case, owner and vassal both have full decks correct is 0 "<<endl
int _feedNumber=_advisor.feedHowMuch(t2.players[1]);
cout<<"chose to feed this much"<<_feedNumber<<endl;

cout<<"case, owner has plenty, vassal has <5, correct feed is 4 "<<endl
for(i=0,i<21,i++){ //reduce the number of vassal's cards
	t2.players[1].getArmy()->draw();
}
_feedNumber=_advisor.feedHowMuch(t2.players[1]);
cout<<"chose to feed vassal this much "<<_feedNumber<<endl;

cout<<"final case, owner is starved, and so is vassal correct is 0 "<<endl;
for(i=0,i<21,i++){
	t2.players[0].getArmy()->draw();
}
_feedNumber=_advisor.feedHowMuch(t2.players[1]);
cout<<"chose to feed vassal this much "<<_feedNumber<<endl;
cout<<"at this point feed how much should have passed."<<endl;

cout<<"last test, the feed who test, checks for vassals with small hands"<<endl;
cout<<"add another vassal to player 1 "<<endl;
t2.players[2].setOwner(t2.players[0]);
t2.players[0].addVassal(t2.players[2]);



//make an advisor that is attached to player 1


*Card tempCard = _advisor.whichCard();

assert(tempCard==t2.players[0].getHand()->at(0))


case where advisor has less than 10 cards in his deck and vassal has less

advisor less than 10 or more than 10
vassal less than 5 or more than 5



case where vassal has more than 5 cards in his deck

